
package com.zjxd.business.web.api.login;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zjxd.business.web.common.ApiResult;

/**
 * 管理员登录
 * 
 * @author dj
 */
@RestController
@RequestMapping("api/loginUser")
public class LoginUserController {

	@Autowired
	private LoginUserService	loginUserService;

	/**
	 * 管路员登录
	 * 
	 * @return
	 */
	@RequestMapping(value = "/login")
	public ApiResult login(LoginModel model) {

		return loginUserService.getLoginUserByMap(model);
	}

}
